package com.nsn.wy.r4h.criterion;

import java.util.List;

import net.gicp.iammarine30.framework.persistence.IGenericDao;

import com.nsn.wy.r4h.criterion.data.CriterionSchemaPO;

/**
 * The Dao is of use to manipulation of CriterionSchemaPOs
 * 
 * @author lijia
 * 
 */
public interface ICriterionDao extends IGenericDao<CriterionSchemaPO, String> {

	/**
	 * Finding schemaPOs by 'isCurrent' property
	 * 
	 * @param
	 * @return
	 */
	List<CriterionSchemaPO> findByCurrentIndicator(Boolean currentIndicator);
	
	/**
	 * Finding all schemaPOs, delete them  
	 * 
	 * @param
	 * @return
	 */
	Integer deleteByAll();

}
